package cn.learn.server.data;

import cn.learn.server.Record;
import cn.learn.server.jute.InputArchive;
import cn.learn.server.jute.OutputArchive;

import java.io.IOException;

public class Id implements Record {
    private String scheme;
    private String id;
    public Id() {}
    public Id(String scheme, String id) {
        this.scheme=scheme;
        this.id=id;
    }
    @Override
    public void serialize(OutputArchive a_, String tag) throws IOException {
        a_.startRecord(this,tag);
        a_.writeString(scheme,"scheme");
        a_.writeString(id,"id");
        a_.endRecord(this,tag);
    }

    @Override
    public void deserialize(InputArchive ia, String fileheader) throws IOException {

    }
}
